package me.ereach.streams;

import java.util.stream.IntStream;

public class Main15PrimitriveStreams {
    public static void main(String[] args) {
        System.out.println("===rangeClosed");
        IntStream.rangeClosed(1, 5)
                .forEach(System.out::println);

        System.out.println("===range");
        IntStream.range(1, 5)
                .forEach(System.out::println);

    }
}
